function [Objv,R,GA_pos] = GA_fobj(PTime,init)

[group_condition,groupid,itemRP,R,new_PTime,Bin,Item] = BL_2DBP(init,PTime);
SearchAgents = 15;                        % population members 
Max_iterations = 40;                    % maximum number of iteration
lb = 0;
ub = 1;
dim = groupid*7;
fobj = @Caltime;
[GA_score,GA_pos,GA_Convergence_curve]=GA(SearchAgents,Max_iterations,fobj,new_PTime,dim); % 调用GA算法

Objv = GA_score / (R*1000);





























end
